import { herinRequist } from "../http.js";
const Personalcenter = {
	getCollectionList(data) {
		return herinRequist({ url: '/app/collection-list', method: 'GET', data, contentType:'application/json' });
	},
	getCollectionDetail(id) {
		return herinRequist({ url: '/app/collection-detail', method: 'GET',data: { id }});
	},
	posCollectionCreate(id){
		return herinRequist({ url: '/app/collection-create', method: 'POST',data: { id }, contentType:'application/json'});
	},
	posCollectionCancel(id){
		return herinRequist({ url: '/app/collection-cancel', method: 'POST',data: { id }, contentType:'application/json'});
	},
	posAllCancel(){
		return herinRequist({ url: '/app/collection-all-cancel', method: 'POST'});
	},
	getMessageList(data){
		return herinRequist({ url: '/pc/message-list', method: 'GET', data});
	},
	posMessageRead(id){
		return herinRequist({ url: '/pc/message-read', method: 'POST',data: { id }});
	},
	getMessageDetail(id){
		return herinRequist({ url: '/pc/message-detail', method: 'GET',data: { id }});
	},
	posAllRead(){
		return herinRequist({ url: '/pc/message-all-read', method: 'POST',});
	}
}

export default Personalcenter;
